;(function (name) {
    window.components = window.components || {}
    window.components[name] = {
        props: {
            name: {
                type: String
            },
            size: {
                type: String,
                default: '24px'
            }
        },
        name,
        mounted() {
            if (this.$attrs['onClick']) {
                this.clickable = true
            }
        },
        data() {
            return {
                clickable: false
            }
        },
        template: `
<svg :width="size" :height="size">
    <use :xlink:href="'#' + name"></use>
</svg>
`
    }
})('IconSvg')
